home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-16  |  1.8 KB  |  89 lines

  1. #ifndef MAIN_H
  2. #define MAIN_H
  3.  
  4. #ifndef DOS_DOSEXTENS_H
  5. #include <dos/dosextens.h>
  6. #endif
  7.  
  8. #ifndef _AMIGA_H_
  9. #include <Amiga.h>
  10. #endif
  11.  
  12. #if defined(DEBUG) && !defined(_STDIO_H_)
  13. #include <stdio.h>
  14. #endif
  15.  
  16. #ifndef AVL_H
  17. #include "AVL.h"
  18. #endif
  19.  
  20. /************************************************************************/
  21.  
  22. #define PROGRAM_NAME        "ADtoHT"
  23. #define PROGRAM_VERSION        "2.0"
  24. #define PROGRAM_DATE        "15.02.95"
  25. #define PROGRAM_COPYRIGHT    "© 1993-1995 Christian Stieber"
  26.  
  27. /************************************************************************/
  28.  
  29. struct AnyNode
  30.   {
  31.     struct AVLNode AVLNode;
  32.     char *Name;
  33.   };
  34.  
  35. int nodecmp (struct AnyNode *, struct AnyNode *);
  36. int nodecasecmp (struct AnyNode *, struct AnyNode *);
  37.  
  38. struct AnyNode *SearchNode (struct AVLTree *, char *);
  39. struct AnyNode *CreateNode (const char *, size_t);
  40.  
  41. /************************************************************************/
  42.  
  43. #define INCLUDEDIR    0
  44. #define HYPERINCLUDEDIR    1
  45. #define AUTODOCDIR    2
  46. #define HYPERAUTODOCDIR    3
  47. #define DIRCOUNT    4
  48. #define CURRENTDIR    DIRCOUNT
  49.  
  50. struct Arguments
  51.   {
  52.     char *Dirs[DIRCOUNT];
  53.     char *Master;        /* filename of master document */
  54.     char *XREF;            /* filename of xref file */
  55.     long FullPath;
  56.     long *Version;        /* version of amigaguide */
  57.     long Parentheses;        /* add () to nodenames as well */
  58.     long *Width;        /* characters/line */
  59. #ifdef DEBUG
  60.     char *Debug;
  61. #endif
  62.   };
  63.  
  64. /************************************************************************/
  65.  
  66. extern struct DosLibrary *DOSBase;
  67.  
  68. extern struct Arguments Arguments;
  69.  
  70. extern int Pass2;
  71.  
  72. extern BPTR Dirs[DIRCOUNT + 1];
  73.  
  74. #ifdef DEBUG
  75. extern FILE *DebugFile;
  76. #endif
  77.  
  78. /************************************************************************/
  79.  
  80. void *xmalloc(size_t);
  81. void *xrealloc (void *, size_t);
  82. char *xstrdup (const char *);
  83.  
  84. void SetRC (int);
  85.  
  86. void CloseAll(int) __NORETURN;
  87.  
  88. #endif /* MAIN_H */
  89.